#ifndef __SYS_H_
#define __SYS_H_

#include "stdint.h"
#include <intrins.h>
#include <stdio.h>

#define SYS_OK 0
#define SYS_FAIL 1

#define MODE_12T 12 /* !> 12T mode */
#define MODE_6T 6   /* !> 6T mode */

#define FOSC_11_M (11059200L) /* !> 11.0592MHz */
#define FOSC_12_M (12000000L) /* !> 12.0000MHz */
#define FOSC_20_M (20000000L) /* !> 20.0000MHz */

/* define your hardware start*/
#define FOSC 11059200L          /* !> your hardware FOSC */
#define SYS_CLK_MODE (MODE_12T) /* !> your sys clk mode */
/* define your hardware end*/

void delay_us(uint8_t us);
void delay_ms(uint8_t ms);
void hj_c52_reset(void);

#endif
